DistinctItems Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Enumerates all the items in the bag, but enumerates equal items just once, even if they occur multiple times in the bag.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public IEnumerable<T> DistinctItems()
Visual Basic (Declaration)
Public Function DistinctItems As IEnumerable(Of T)
Visual C++
public:
IEnumerable<T>^ DistinctItems ()

Return Value

An IEnumerable<T> that enumerates the unique items.

Remarks

If the bag is changed while items are being enumerated, the enumeration will terminate with an InvalidOperationException.

See Also